package com.ruoyi.project.emr.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 处方对象 emr_prescription
 * 
 * @author gzu
 * @date 2023-07-22
 */
public class EmrPrescription extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 处方主键 */
    private Long id;

    /** 状态 {草稿、保存} */
    @Excel(name = "状态 {草稿、保存}")
    private Integer status;

    /** 开具日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开具日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 付数 */
    @Excel(name = "付数")
    private Integer count;

    /** 病历号 */
    @Excel(name = "病历号")
    private String medicalRecordId;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal amount;

    /** 疗法 */
    @Excel(name = "疗法")
    private String therapy;

    /** 疗法细节 */
    @Excel(name = "疗法细节")
    private String therapyDetails;

    /** 医疗建议 */
    @Excel(name = "医疗建议")
    private String medicalAdvice;

    /** 药物使用频率 */
    @Excel(name = "药物使用频率")
    private String frequency;

    /** 使用方法 */
    @Excel(name = "使用方法")
    private String usageMeans;

    /** 类型 */
    @Excel(name = "类型")
    private Integer type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setCount(Integer count) 
    {
        this.count = count;
    }

    public Integer getCount() 
    {
        return count;
    }
    public void setMedicalRecordId(String medicalRecordId) 
    {
        this.medicalRecordId = medicalRecordId;
    }

    public String getMedicalRecordId() 
    {
        return medicalRecordId;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setTherapy(String therapy) 
    {
        this.therapy = therapy;
    }

    public String getTherapy() 
    {
        return therapy;
    }
    public void setTherapyDetails(String therapyDetails) 
    {
        this.therapyDetails = therapyDetails;
    }

    public String getTherapyDetails() 
    {
        return therapyDetails;
    }
    public void setMedicalAdvice(String medicalAdvice) 
    {
        this.medicalAdvice = medicalAdvice;
    }

    public String getMedicalAdvice() 
    {
        return medicalAdvice;
    }
    public void setFrequency(String frequency) 
    {
        this.frequency = frequency;
    }

    public String getFrequency() 
    {
        return frequency;
    }
    public void setUsageMeans(String usageMeans) 
    {
        this.usageMeans = usageMeans;
    }

    public String getUsageMeans() 
    {
        return usageMeans;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("status", getStatus())
            .append("createDate", getCreateDate())
            .append("count", getCount())
            .append("medicalRecordId", getMedicalRecordId())
            .append("amount", getAmount())
            .append("therapy", getTherapy())
            .append("therapyDetails", getTherapyDetails())
            .append("medicalAdvice", getMedicalAdvice())
            .append("frequency", getFrequency())
            .append("usageMeans", getUsageMeans())
            .append("type", getType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
